package com.nami.ucenter.types.utils;

import static com.nami.ucenter.types.constants.RedisConst.CACHE_PREFIX;
import static com.nami.ucenter.types.constants.RedisConst.COLON;

public class RedisKeyUtil {


    public static String calculateBucketId(String appKey, String userId) {

        return "";
    }

    public static String buildOnlineUserCacheKeyV2(String appKey, String userId) {
        return CACHE_PREFIX + appKey + COLON + "user:info:bucket:" + calculateBucketId(appKey, userId);
    }

    public static String buildOnlineUserCacheKey(String appKey, String userId) {
        return CACHE_PREFIX + appKey + COLON + "user:info";
    }

}
